def write_message(filename,message):
    with open(filename, 'w') as f:
        f.write(message)

if __name__ == "__main__":
    write_message("hello.txt","Hello,python")
    with open("hello.txt","r",encoding="utf-8") as f:
        content = f.read()
    print(content)
    